tests/gpg: Use exit hook to kill agent in temporary GPG homedir
authorDan Nicholson <nicholson@endlessm.com>
Fri, 26 Jul 2019 16:17:07 +0000 (10:17 -0600)
committerAtomic Bot <atomic-devel@projectatomic.io>
Sat, 27 Jul 2019 03:20:21 +0000 (03:20 +0000)
commit8ac348d19a38b0f1d84488d85152524449da767a
tree47b79dcc4fea8c5a16ede7186544a208b5eeae02
parent615861443be250cba16d674a6b3c7f96c8b842de
tests/gpg: Use exit hook to kill agent in temporary GPG homedir

This wasn't available when I originally wrote this, but it ensures that
the running gpg-agent in tmpgpghome is killed in case the tests exit
early.

Closes: #1892
Approved by: jlebon
tests/test-gpg-signed-commit.sh